/*
 * vws_http_error.h
 *
 *  Created on: Sep 20, 2013
 *      Author: vscen
 */

#ifndef VWS_HTTP_ERROR_H_
#define VWS_HTTP_ERROR_H_

#include "vws_config.h"

#define HTTPVERSION       "HTTP/1.1"
#define HTTPSERVERVERSION "vscen/0.01"

namespace vws {
typedef struct structErrorTable {
	int nIndex;
	char pszComment[32];
	char pszStatusCode[4];
}*pStructErrorTable;
class vws_http_error {
public:
	bool get_error_page(int nIndex, char* pszBuffer, size_t nSize);
	bool get_status_buffer(int index, char* buffer, size_t size);
	pStructErrorTable GetErrorMsgPtr(int nIndex);
};
}

#endif /* VWS_HTTP_ERROR_H_ */
